package com.jic.member.mapper;
import com.jic.common.base.vo.Page;
import com.jic.member.entity.MemDiscountThemeEntity;
import com.jic.member.request.MemDiscountThemeRequest;
import com.jic.member.response.MemDiscountThemeResponse;
import org.springframework.stereotype.Repository;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Repository
public interface MemDiscountThemeEntityMapper{

    void insert(MemDiscountThemeEntity memDiscountThemeEntity);

    void update(MemDiscountThemeEntity memDiscountThemeEntity);

    /**
     * 管理页面分页查询折扣卡主题
     * @param request
     * @return
     */
    List<MemDiscountThemeResponse> queryPage(@Param("po") MemDiscountThemeRequest request, @Param("page") Page page);

    /**
     * 管理页面分页查询折扣卡主题
     * @param request
     * @return
     */
    int queryPageCount(@Param("po") MemDiscountThemeRequest request);

    MemDiscountThemeEntity queryById(Long id);
}